Public Declare Function GetTickCount Lib "kernel32" () As Long
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'General Service Constants
Public Const glMAX_DURATION As Long = 60000 'The longest an Service is allowed to take
'Service Error Constants
Public Const giERROR_THRESHOLD As Long = 32000 'Any error above this number is application defined
'Also used to lookup error strings from the RES file
'The actual error number raised to the calling program
'is "cont + vbObjectError"
Public Const giBAD_DATA As Long = 32766
Public Const giBAD_DURATION As Long = 32765
Public Const giBAD_DATA_TYPE As Long = 32764
'Data Access constants
Public Const gsDBName As String = "AEServic.mdb"
Public Const gsFIND_CRITERIA As String = "OrderID=1"
Public Const gsFIELD_TO_READ As String = "ProductName"
Public Const gsWRITE_QUERY As String = "UPDATE DISTINCTROW OrderDetails SET OrderDetails.Quantity = 100 WHERE (((OrderDetails.OrderID)=1));"
Public Const gsREAD_QUERY As String = "SELECT DISTINCTROW OrderDetails.OrderID, Products.ProductName, OrderDetails.Quantity FROM OrderDetails INNER JOIN Products ON OrderDetails.ProductID = Products.ProductID;"